
--#include "data\functions\Activity\DailyActivity\WorshipMonarch.lua" once				--膜拜君主


local npcId = 74
NpcDialog[npcId] = {}
local t = NpcDialog[npcId]

t.main = function(sysarg)
	print("t.main, npcId="..npcId)
	if IsInWorshipMonarch() then
		local actorId  = Actor.getActorId( sysarg )
		local curFloor = WorshipMonarchGetCurFloor( actorId )
		Actor.openDialogs( sysarg, enLinkWorshipMonarchdWnd , tostring(curFloor))
	else
		Actor.sendTipmsg(sysarg, Lang.ScriptTips.WorshipMonarch01, ttFlyTip)
	end
end


